//封装登录请求接口的请求调用的函数

//先导入封装的统一调用函数和参数/返回的数据类型
import { get, post, put, del } from './request'

//登录接口的请求函数      参数名：参数值
export const studentListApi = (data?: any) => {
  return post<any>('student/info', data)
}

// 分页筛选学生信息
export const filterStudentApi = (params: any) => {
  return post<any>('student/filter', params); // 假设后端路径为 /student/filter
};

//批量导入学生信息
export const uploadApi = (file: any) => {
  return post<any>('student/upload', file);
}

// 删除学生信息
export const deleteStudentApi = (id: number) => {
  return del<any>(`student/delete/${id}`); // 假设后端路径为 /student/delete/{id}
};

// 暂停学生就业
export const pauseEmploymentApi = (data: any) => {
  return post<any>('student/pause', data); // 假设后端路径为 /student/pause
};

// 恢复学生就业
export const restoreEmploymentApi = (data: any) => {
  return post<any>('student/restore', data); // 假设后端路径为 /student/restore
};

// 放弃学生就业
export const abandonEmploymentApi = (data: any) => {
  return get<any>('student/abandon', data); // 假设后端路径为 /student/abandon
};

// 上传简历
export const uploadResumeApi = (data: any) => {
  return post<any>('resume/upload', data); // 假设后端路径为 /resume/upload
};

// 获取简历列表
export const getResumeListApi = (params: any) => {
  return post<any>('resume/query', params); // 假设后端路径为 /resume/list
};

// 删除简历
export const deleteResumeApi = (id: number) => {
  return del<any>(`resume/delete/${id}`); // 假设后端路径为 /resume/delete/{id}
};

// 简历中心的查询
export const searchResumeApi = (params: any) => {
  return post<any>('resume/stuResume', params); // 假设后端路径为 /resume/stu-resume
};

// 学生就业详细信息
export const getStuEmpDetailList = (params: any) => {
  return post<any>('resume/queryStuResDetail',params); 
  };